package org.broadway.scripting;

import org.apache.commons.logging.Log;
import org.broadway.exceptions.ABroadException;

/**
 * This exception class should be thrown whenever there's 
 * an issue with executing a script or an evaluate an expression.
 * @author vladimir
 *
 */
public class ScriptingException extends ABroadException {
	private static final long serialVersionUID = -8204185087708170229L;

	/**
	 * Constructor
	 * @param msg
	 */
	public ScriptingException(String msg) {
		super(msg);
	}
	/***
	 * Constructor that returns a logged exception.
	 * @param msg
	 * @param log
	 */
	public ScriptingException(String msg, Log log) {
		super(msg, log);
	}
	
	/***
	 * Exception Constructor
	 * @param ex
	 */
	public ScriptingException(Throwable ex) {
		super(ex);
	}
	
	/***
	 * Constructor that returns a logged exception
	 * @param ex
	 * @param log
	 */
	public ScriptingException(Throwable ex, Log log) {
		super(ex, log);
	}
	
	/**
	 * Exception constructor.
	 * @param msg
	 * @param ex
	 */
	public ScriptingException(String msg, Throwable ex) {
		super(msg, ex);
	}
	
	/**
	 * Constructor that returns a logged exception.
	 * @param msg
	 * @param ex
	 * @param log
	 */
	public ScriptingException(String msg, Throwable ex, Log log) {
		super(msg, ex, log);
	}

}
